package com.hboxs.asl.controller.asl.member;

import com.hboxs.asl.controller.asl.BaseController;
import com.hboxs.asl.service.RushService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

/**
 * Created by hboxs005 on 2016/12/21.
 */
@Controller("rushController")
@RequestMapping(value = "/weChat/rush")
public class RushController extends BaseController {

    @Resource(name = "rushServiceImpl")
    private RushService rushService;

    @RequestMapping(value = "/index", method = RequestMethod.GET)
    public String index(ModelMap modelMap) {
        modelMap.addAttribute("rushes", rushService.findEnableList());
        return "/yijing/product-rush";
    }


}
